package com.xinlu.util.tool;

public class DoNumber {
	
	/**
	 * 
	 * Function :		四舍五入
	 * @param num
	 * @param length
	 * @return
	 * Derek
	 * 2011-6-1 上午01:31:35
	 */
	public static double roundNumber(double num, int length){
		
		double i = Math.pow(10, length);
		
		return Math.round(num * i)/i;
	}
	
}
